package com.manli.timing.utils;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateUtils {
    private static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    public static String get15minsAgo(){
        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.MINUTE,-15);
        return simpleDateFormat.format(calendar.getTime());
    }

    public static String getNow(){
        return simpleDateFormat.format(new Date());
    }
}
